export const routes = [
    {//默认
        path: '/',
        name: 'Main',
        component: () => import('../views/Main.vue'),
        children: [
            {//首页
                path: 'home',
                alias: '',
                name: 'Home',
                component: () => import('../views/Home.vue'),
            },
            {//发现
                path: 'find',
                name: 'Find',
                component: () => import('../views/Find.vue'),
                children: [
                    {//歌手
                        path: 'singer',
                        name: 'Singer',
                        component: () => import('../views/find/Singer.vue'),
                    },
                    {//推荐
                        path: 'recommend',
                        alias: '',
                        name: 'Recommend',
                        component: () => import('../views/find/Recommend.vue'),
                    },
                    {//搜索
                        path: 'search',
                        name: 'Search',
                        component: () => import('../views/find/Search.vue'),
                    }
                ]
            },
            {//我的
                path: 'my',
                name: 'My',
                component: () => import('../views/My.vue'),
            },
        ]
    },
    {//登录注册
        path: '/logOn',
        name: 'LogOn',
        component: () => import('../views/LogOn.vue'),
    },
    {//vip
        path: '/vip',
        name: 'Vip',
        component: () => import('../views/Vip.vue'),
    },
    {// 歌手详情
        path: '/singerDetails/:id',
        name: 'SingerDetails',
        component: () => import('../views/SingerDetails.vue'),
    },
    {// 歌单
        path: '/songSheet',
        name: 'SongSheet',
        component: () => import('../views/SongSheet.vue'),
    },
]